package com.vecspace.sso.entity;

/**
 * AppFunction entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AppFunction implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	
	private static final long serialVersionUID = 10002L;
	private Long id;
	private Long parentId;
	private String funcCode;
	private String funcName;
	private String className;
	private String methodName;
	private String url;
	private String icon;
	private Long valid;
	private String remark;
	private Integer ordnum;
	private Long topId;
	private Integer funcType;

	// Constructors

	/** default constructor */
	public AppFunction() {
		valid = 1L;
	}

	/** minimal constructor */
	public AppFunction(Long id) {
		this.id = id;
	}

	/** full constructor */
	public AppFunction(Long id, Long parentId, String funcCode,
			String funcName, String className, String methodName, String url,
			String icon, Long valid, String remark, Integer ordnum) {
		this.id = id;
		this.parentId = parentId;
		this.funcCode = funcCode;
		this.funcName = funcName;
		this.className = className;
		this.methodName = methodName;
		this.url = url;
		this.icon = icon;
		this.valid = valid;
		this.remark = remark;
		this.ordnum = ordnum;
	}
	
	public AppFunction(Long parentId, String funcCode, String funcName, Integer ordnum) {		
		this.parentId = parentId;
		this.funcCode = funcCode;
		this.funcName = funcName;
		this.ordnum = ordnum;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		if(parentId == null) return -1L;
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getFuncCode() {
		return this.funcCode;
	}

	public void setFuncCode(String funcCode) {
		this.funcCode = funcCode;
	}

	public String getFuncName() {
		return this.funcName;
	}

	public void setFuncName(String funcName) {
		this.funcName = funcName;
	}

	public String getClassName() {
		return this.className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return this.methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Long getValid() {
		return this.valid;
	}

	public void setValid(Long valid) {
		this.valid = valid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getOrdnum() {
		return ordnum;
	}

	public void setOrdnum(Integer ordnum) {
		this.ordnum = ordnum;
	}

	public Long getTopId() {
		return topId;
	}

	public void setTopId(Long topId) {
		this.topId = topId;
	}

	public Integer getFuncType() {
		return funcType;
	}

	public void setFuncType(Integer funcType) {
		this.funcType = funcType;
	}

}